<template>
  <div>
    404
  </div>
</template>

<script setup>
let arr = [4, 5, 3, 2, 6, 7, 1]
for (let a = 0; a < arr.length - 1; a++) {
  for (let b = 0; b < arr.length - 1; b++) {

    if (arr[b] > arr[b + 1]) {
      let temp = []
      temp=arr[b]
      arr[b]=arr[b+1]
      arr[b+1]=temp
    }
  }
}
console.log(arr)

</script>

<style></style>